using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq;
using System.Data.Linq.Mapping;

namespace WindowsPhoneGame2
{
    [Database]
    public partial class HighScoreContext : DataContext
    {
        Table<HighScore> tableHighScore;
        public HighScoreContext(string strConnection)
            : base(strConnection)
        {
            tableHighScore = GetTable<HighScore>();
        }

        public Table<HighScore> HighScores
        {
            get { return tableHighScore; }
        }

        public List<string> GetList()
        {
            var q = from e in tableHighScore select  e.Score;
            return q.ToList<string>();
        }

    }
}
